<admintpl file="header" />
<style>
	*{margin:0; padding:0;}
	body{font-family: "Microsoft Yahei", "hiragino sans gb", Helvetica, Arial, Tahoma;}
	.shdo{position: fixed; left:0; top:0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 10; display: none;}
	.stan-box{padding:10px 20px; width: 400px; max-height: 500px; background: #fff; position: fixed; left:100px; top:100px; z-index: 11; display: none;}
	.simgBox{max-height: 440px; overflow: auto; text-align: center;}
	.simgBox img{}
	.stit{height: 30px;}
	.stit .yuan{font-size: 14px;}
	.stit .cuo{display: block; width: 20px; height: 20px; color: #fff; background: #007aff; line-height: 20px; text-align: center; position: absolute; right:0; top:0; cursor: pointer;}
	.sbot{height: 30px; }
	.sbot span{height: 26px; line-height: 26px; width: 50px; font-size: 12px; color: #fff;  background: #007aff;  float: right; text-align: center; border-radius: 2px;margin-top: 6px; cursor: pointer;}
	.tanimg{cursor:pointer;}
    .aBtnInput{display: inline-block; padding:0 2px; background: #f1f1f1; border:1px solid #a5a5a5; border-radius: 2px; }
    .aBtnInput:link,.aBtnInput:visited,.aBtnInput:hover,.aBtnInput:active{text-decoration: none;color: #333;}
</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Review/reviewlist',array('id'=>$id,'type'=>$type))}">活动评论管理</a></li>
		</ul>
		<form method="post" class="js-ajax-form">
			<php>if(!empty($id)):</php>
			<div class="table-actions">
				<a class="btn btn-primary btn-small" href="{:U('Admin/active/activelist')}">返回活动管理</a>
			</div>
			<php>endif;</php>
			<php> $status=array("1"=>"启用","2"=>"禁用"); </php>
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th>活动标题</th>
						<th>会员ID</th>
						<th>会员名称</th>
						<th>发布时间</th>
						<th width="45">状态</th>
						<th width="120">操作</th>
					</tr>
				</thead>
				<tbody>
				<php>if(!empty($existdata)):</php>
					<foreach name="review" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.subject}</td>
						<td>{$vo.member_id}</td>
						<td>{$vo.name}</td>
						<td><php> echo date("Y-m-d H:i:s",strtotime($vo['create_time']));</php></td>
						<td>{$status[$vo['status']]}</td>
						<td width="200px">
							<a href="{:U('Review/reviewedit',array('id'=>$vo['id'],'aid'=>$id,'type'=>$type))}" class="">评论内容</a>
							<a href="{:U('Review/reviewdel',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
						</td>
					</tr>
					</foreach>
				<php>else:</php>
				<tr>
					<td style="text-align: center;" colspan="10">未搜索到相关数据</td>
				</tr>
				<php>endif;</php>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>